/**
 * Copyright 2011 Mathieu Magnaudet
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package edu.enac.fileloader.service;


import edu.enac.fileloader.exception.FileLoaderException;
import edu.enac.geoapp.model.Format;

/**
 * Interface defining methods to get a file from a host
 * 
 * @author mathieu
 *
 */
public interface IFileLoader {
	/**
	 * Gets the file filename
	 * @param pathname the distant directory where to get the file
	 * @param filename The file to get
	 * @param format the format of the file to get 
	 * @return true if the file has been successfully retrieved
	 * @throws FileLoaderException if an error occurs during the retrieving process
	 * 
	 */
	public boolean getFile(String pathname, String filename, Format f) throws FileLoaderException;
	
	
	/**
	 * Sets the Host from which getting a file
	 */
	public void setHost(Host newHost);
}
